package mine.threadlocal;

/**
 * Created by james on 16/2/5.
 */
public class ClientThread extends Thread {
    private Sequence sequence;

    public ClientThread(Sequence sequence){
        this.sequence = sequence;
    }

    @Override
    public void run() {
        for (int i = 0;i<3;i++){
            System.out.println(Thread.currentThread().getName() + "=>" + sequence.getNumber());
        }
    }
}
